package org.panda.spring;

import org.panda.spring.service.UserServer;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ApplicationContextTest {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
//        ApplicationContext context = new ClassPathXmlApplicationContext("application-nvr.yml");
        UserServer userServer = (UserServer) context.getBean("userServer");
        System.out.println(userServer);
        context.close();
    }
}
